<template>
 <view>
   <view class="searchBox" @click="searchBoxHandler">
     <view class="inputBox">
        <icon type="search" size="12"/>
       <text class="placeholder">搜索框</text>
     </view>
   </view>
 </view>
</template>

<script>
  export default{
    methods:{
      searchBoxHandler(){
        this.$emit('click')
      }
    }
  }
</script>

<style lang="scss" scoped>
  .searchBox{
    height: 100rpx;
    background-color: #EA4350;
    display: flex;
    justify-content: center;
    align-content: center;
    .inputBox{
      width: 700rpx;
      height: 80rpx;
      background-color: #fff;
      border-radius: 40rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      .placeholder{
        color: #767676;
        font-size: 32rpx;
        margin-left: 5rpx;
      }
    }
  }
</style>